﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace Ruandao.Foundation.Service
{
    using Ruandao.Foundation.Service.DataAccess;

    [DataContract]
    public class TagData
    {
        private int tagId = 0;
        [DataMember]
        public int TagId
        {
            get { return this.tagId; }
            set { this.tagId = value; }
        }

        private int tagGroupId = 0;
        [DataMember]
        public int TagGroupId
        {
            get { return this.tagGroupId; }
            set { this.tagGroupId = value; }
        }

        private int tagCategoryId = 0;
        [DataMember]
        public int TagCategoryId
        {
            get { return this.tagCategoryId; }
            set { this.tagCategoryId = value; }
        }

        private string tagName = String.Empty;
        [DataMember]
        public string TagName
        {
            get { return this.tagName; }
            set { this.tagName = value; }
        }

        private string description = String.Empty;
        [DataMember]
        public string Description
        {
            get { return this.description; }
            set { this.description = value; }
        }

        //private static TagGroupData NewGroupData(TagGroupEntity entity)
        //{
        //    TagGroupData data = new TagGroupData();
        //    TypeUtil.MapProperty(entity, data,
        //        "TagGroupId",
        //        "Title",
        //        "Description",
        //        "OwnerGuid",
        //        "MaxTags",
        //        "MaxContents");
        //    return data;
        //    throw new NotImplementedException();
        //}

        internal static TagGroupData ConstructFrom(TagGroup entity)
        {
            throw new NotImplementedException();
        }

        internal TagGroup ConvertToTagGroup()
        {
            throw new NotImplementedException();
        }
    }
}
